
<%@ page language="java" pageEncoding="UTF-8"
	errorPage="../defaultException.jsp"%>
<%@include file="../tags.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>魔方旅行后台管理</title>
<%@include file="../head.jsp"%>

<style>
html {
	height: 100%;
	wight: 100%;
	padding: 0;
	margin: 0;
}

body {
	height: 100%;
	wight: 100%;
	padding: 0;
	margin: 0;
}
</style>

<script>
	function addTab(title, href) {

		/**
		if ($('#main-center').tabs('getTab', title)) {
			return;
		}*/
		if (href) {
			var content = '<iframe scrolling="no" frameborder="0"  src="'
					+ href + '" style="width:100%;height:100%;"></iframe>';
		} else {
			var content = '未实现';
		}

		//如果该tab已经展示，则只需要替换内容
		var tab = $('#main-center').tabs('getTab', title);
		/*
		var selectTab = $('#main-center').tabs('getSelected');
		if (tab == selectTab){
			return;
		}*/
		//如果该页签已经存在，则需要先关闭，然后再添加
		if (tab) {
			$('#main-center').tabs('close', title);
		}
		$('#main-center').tabs('add', {
			title : title,
			closable : true,
			content : content
		});
	}
</script>
</head>
<body>
	<div class="easyui-layout" style="width: 100%; height: 100%;">

		<!--  <div data-options="region:'north'"
			style="background: #fafafa; color: #2d5593; height: 40px;">
			<div
				style="font-size: 16px; font-weight: bold; width: 400px; padding: 10px 0 0 10px;">魔方旅行后台管理</div>
		</div>-->
		<div data-options="region:'west',split:true" title="导航栏"
			style="width: 200px;">
			<div class="easyui-accordion" data-options="fit:true">
				<div title="信息管理">

					<table align="center">
						<tr>
							<td><a
								href="javascript:addTab('目的地','${cpath }/admin/dest/vlist')">
									<img src="${cpath }/resources/images/kontact.png"></img><br />
									<span>目的地</span> </a>
							</td>
						</tr>


						<tr>
							<td><a
								href="javascript:addTab('大图','${cpath }/admin/bigimage/vlist')">
									<img src="${cpath }/resources/images/kontact.png"></img><br />
									<span>大图管理</span> </a>
							</td>
						</tr>

						<tr>
							<td><a
								href="javascript:addTab('新闻','${cpath }/admin/news/vlist')">
									<img src="${cpath }/resources/images/kontact.png"></img><br />
									<span>新闻管理</span> </a>
							</td>
						</tr>

						<tr>
							<td><a
								href="javascript:addTab('首页特色类别','${cpath }/admin/home/category/vlist')">
									<img src="${cpath }/resources/images/kontact.png"></img><br />
									<span>首页特色类别管理</span> </a>
							</td>
						</tr>
						<tr>
							<td><a
								href="javascript:addTab('单独发布特色项','${cpath }/admin/dest/alone/feature/item/vlist')">
									<img src="${cpath }/resources/images/kontact.png"></img><br />
									<span>单独发布特色项</span> </a>
							</td>
						</tr>
						<tr>
							<td><a
								href="javascript:addTab('查看过期特色项','${cpath }/admin/dest/expire/feature/item/vlist')">
									<img src="${cpath }/resources/images/kontact.png"></img><br />
									<span>查看过期特色项</span> </a>
							</td>
						</tr>
						<tr>
							<td><a
								href="javascript:addTab('微博管理','${cpath }/admin/weibo/vsend')">
									<img src="${cpath }/resources/images/kontact.png"></img><br />
									<span>微博管理</span> </a>
							</td>
						</tr>

						<tr>
							<td><a
								href="javascript:addTab('友情链接管理','${cpath }/admin/friend/type/vlist')">
									<img src="${cpath }/resources/images/kontact.png"></img><br />
									<span>友情链接管理</span> </a>
							</td>
						</tr>
						
						<tr>
							<td><a
								href="javascript:addTab('风格偏好首页类别管理','${cpath }/admin/classify/vlist')">
									<img src="${cpath }/resources/images/kontact.png"></img><br />
									<span>风格偏好首页类别管理</span> </a>
							</td>
						</tr>
					</table>
				</div>
				<div title="行程管理">
					<table align="center">
						<tr>
							<td><a
								href="javascript:addTab('行程开放IP','${cpath }/admin/trip/vsaveip')">
									<img src="${cpath }/resources/images/kontact.png"></img><br />
									<span>行程开放IP</span> </a>
							</td>
						</tr>
						<tr>
							<td><a
								href="javascript:addTab('行程管理','${cpath }/admin/trip/vlist')"> <img
									src="${cpath }/resources/images/kontact.png"></img><br /> <span>行程管理</span>
							</a>
							</td>
						</tr>
						<tr>
							<td><a
								href="javascript:addTab('行程目的地管理','${cpath }/admin/trip/tripdest/vlist')"> <img
									src="${cpath }/resources/images/kontact.png"></img><br /> <span>行程目的地管理</span>
							</a>
							</td>
						</tr>
						<tr>
							<td><a
								href="javascript:addTab('查看过期行程','${cpath }/admin/trip/expire/vlist')">
									<img src="${cpath }/resources/images/kontact.png"></img><br />
									<span>查看过期行程</span> </a>
							</td>
						</tr>
					</table>
				</div>
				<div title="系统基础数据">
					<table align="center">
						<tr>
							<td><a
								href="javascript:addTab('国家','${cpath }/admin/country/vlist')">
									<img src="${cpath }/resources/images/kontact.png"></img><br />
									<span>国家</span> </a>
							</td>
						</tr>
						<tr>
							<td><a
								href="javascript:addTab('酒店服务信息','${cpath }/admin/hotel/service/category/vlist')">
									<img src="${cpath }/resources/images/kontact.png"></img><br />
									<span>酒店服务信息</span> </a>
							</td>
						</tr>
						<tr>
							<td><a
								href="javascript:addTab('目的地特色类别','${cpath }/admin/dest/feature/category/vlist')">
									<img src="${cpath }/resources/images/kontact.png"></img><br />
									<span>目的地特色类别管理</span> </a>
							</td>
						</tr>
						<tr>
							<td><a
								href="javascript:addTab('酒店风格','${cpath }/admin/hotel/style/vlist')">
									<img src="${cpath }/resources/images/kontact.png"></img><br />
									<span>酒店风格</span> </a>
							</td>
						</tr>
						<tr>
							<td><a
								href="javascript:addTab('应用管理','${cpath }/admin/app/vlist')">
									<img src="${cpath }/resources/images/kontact.png"></img><br />
									<span>应用管理</span> </a>
							</td>
						</tr>
						<!--   <tr>
							<td><a 
								href="javascript:addTab('修改系统配置','${cpath }/admin/config/configAction.do?action=toUpdateConfig')"> <img
									src="${cpath }/resources/images/kontact.png"></img><br /> <span>修改系统配置</span>
							</a>
							</td>
						</tr>-->
					</table>
				</div>
				
				<div title="微信管理">
					<table align="center">
						<tr>
							<td><a
								href="javascript:addTab('订制菜单','${cpath }/admin/weixin/')">
									<img src="${cpath }/resources/images/kontact.png"></img><br />
									<span>订制菜单</span> </a>
							</td>
						</tr>
						<tr>
							<td><a
								href="javascript:addTab('查看菜单','${cpath }/admin/weixin/query')">
									<img src="${cpath }/resources/images/kontact.png"></img><br />
									<span>查看菜单</span> </a>
							</td>
						</tr>
						<tr>
							<td><a
								href="javascript:addTab('删除菜单','${cpath }/admin/weixin/delete')">
									<img src="${cpath }/resources/images/kontact.png"></img><br />
									<span>删除菜单</span> </a>
							</td>
						</tr>

					</table>
				</div>
			</div>
		</div>
		<div data-options="region:'center'">
			<div id="main-center" class="easyui-tabs" data-options="fit:true">
				<div title="首页" style="padding: 20px;">
					<img src="${cpath }/resources/images/banner.gif"></img>
					<div style="margin-top: 20px;">
						<p>魔方旅行度假网站主要集最新旅游咨询。</p>
						<p>&nbsp;</p>
						<p>最火热的旅行目的地推荐。</p>
						<p>&nbsp;</p>
						<p>实惠与品位兼顾的酒店推荐与预定的功能性商业网站。</p>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>